package com.cn.entity;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName : Material
 * @Description : TODO 成本耗材
 * @date : 2019-3-18 上午11:27:50
 * @author zq
 */

@Table(name = "material")
@Data
public class Material {
	
	//id
	@Id
	private Integer id;
	
	//公司
	@Column(name = "company_id")
	private Integer companyId;
	
	//耗材型号/规格
	@Column(name = "material_type_no")
	private String materialTypeNo;
	
	//工厂
	@Column(name = "factory_id")
	private Integer factoryId;
	
	//生产线
	@Column(name = "production_line_id")
	private Integer productionLineId;
	
	//设备型号
	@Column(name = "devices_no")
	private String devicesNo;
	
	//耗材名称
	@Column(name = "name")
	private String name;
	
	//设备地址
	@Column(name = "mac")
	private String mac;
	
	//单价
	@Column(name = "price")
	private Double price;
	
	//时间
	@Column(name = "today")
	private Integer today;
	
	//批次号
	@Column(name = "batch_no")
	private String batchNo;

	//录入人
	@Column(name = "reg_user_id")
	private Integer regUserId;
	
	//录入时间
	@Column(name="reg_date")
	private Date regDate;

}
